package com.alifi.crm.dal.lottery;

import java.util.List;

import com.alifi.crm.dal.object.WinRecordDO;

public interface WinRecordDAO {
    
    /**
     * 获得中奖纪录
     * 
     * @return
     */
    List<WinRecordDO> getWinRecords(String type, final int maxCount);
    
    /**
     * 获得中奖纪录
     * 
     * @return
     */
    int getWinCountByPiztype(String pizType, String type, String date);
    
    /**
     * 插入中奖纪录
     * 
     * @param winRecord
     */
    void insertWinRecord(WinRecordDO winRecord);
    
    /**
     * 获取某个员工的中奖纪录
     * 
     * @param employeeNum
     * @param type
     * @return
     */
    List<WinRecordDO> selectByEmployeeNum(String employeeNum, String type);
    
    List<WinRecordDO> selectByEmployeeByDate(String employeeNum,String type, String gmtCreated) ;
    
}
